<h1>{$galleriesTitle}</h1>
<table>
    <tr>
        {section name=gallery loop=$galleries}
        <td align="center">
            {if $galleries[gallery].preview}
            <a href="{$galleries[gallery].link}">
                <img src="{simage src=$galleries[gallery].preview width=213 height=160 border=true}" alt="{$galleries[gallery].name}" /><br />
            {/if}
                {$galleries[gallery].name}
            {if $galleries[gallery].preview}
            </a>
            {/if}
        </td>
        {if $smarty.section.gallery.index % 2 == 1}
    </tr>
    <tr>
        {/if}
        {/section}
    </tr>
</table>